package global

import (
	"time"

	"gorm.io/gorm"
)

type BaseModal struct {
	Id        uint           `gorm:"primarykey" json:"id"` // 主键ID
	CreatedAt time.Time      `json:"createdAt"`            // 创建时间
	UpdatedAt time.Time      `json:"updatedAt"`            // 更新时间
	DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`       // 删除时间
}

type BaseCaptcha struct {
	CaptchaId  string `json:"captchaId" binding:"required" msg:"验证码id不能为空"`
	CaptchaVal string `json:"captchaVal" binding:"required" msg:"验证码不能为空"`
}
